package com.info.zhiduoduo.common.constants.company;

import org.apache.commons.lang3.StringUtils;

/**
 * 企业账户流水, 账户类型
 */
public interface CompanyAccountFlowAccountType {

	/**  平台统一账户 */
	int ZDD_UNIFY = 1;
	/** 企业商户号(开联通) */
	int OWN_MERCHANT = 2;
	/** 企业的创客团账本 */
	int MAKER_GROUPON = 3;
	/** 支付宝转账账户 */
	int ALIPAY_TYPE = 4;

	static String normalTypes() {
		return StringUtils.joinWith(",", ZDD_UNIFY, OWN_MERCHANT, ALIPAY_TYPE);
	}
	static String normalCompanyTypes() {
		return StringUtils.joinWith(",", ZDD_UNIFY, OWN_MERCHANT);
	}
	static String makerGroupType() {
		return String.valueOf(MAKER_GROUPON);
	}
	static String makerGroupAliPayType() {
		return StringUtils.joinWith(",", MAKER_GROUPON, ALIPAY_TYPE);
	}
	static String allAccountType() {
		return StringUtils.joinWith(",", ZDD_UNIFY, OWN_MERCHANT,MAKER_GROUPON);
	}
}
